<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    //跨浏览器兼容问题
    function getStyle(node,cssStyle){
        return node.currentStyle?node.currentStyle[cssStyle]:getComputedStyle(node)[cssStyle]
        //currentStyle为IE
        //getComputedStyle为火狐，谷歌
    }
</script>
<body>
    
</body>
</html>